package com.cheng.mybatis02.service;

import com.cheng.mybatis02.entity.Book;

import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface BookService {
    Integer getBookCount();

    Map<String , Object> getBookByIdToMap(int id);

    List<Map<String,Object>> getAll();

    Map<Integer,Map<String,Object>> getAllToMap();

    List<Book> getBookByAuthor(String author);

    int removeBookByIds(String ids);

    int addBook(Book book);
}
